package com.rtx.wms.std.log.service.impl;

import org.springframework.stereotype.Component;

import com.rtx.edi.model.log.po.PlApiRequestLog;
import com.rtx.wms.std.log.bean.WmsLogBo;
import com.rtx.wms.std.log.service.AbsWmsLogService;
import com.rtx.wms.std.so.bean.ApiOrdersfinish;

@Component
public class DeliveryorderConfirmLog extends AbsWmsLogService{

	@Override
	public void mappingLog(WmsLogBo logBo, PlApiRequestLog log) {
		
		super.mappingLog(logBo, log);
		
		ApiOrdersfinish apiOrdersfinish = (ApiOrdersfinish) logBo.getOriginalData();
		
        log.setLogkey(apiOrdersfinish.getExternorderkey());
        
        //接收公司名称
        log.setResponseCompanyName(apiOrdersfinish.getStorerkey());
        //接收应用名称
        log.setResponseApplicationName(apiOrdersfinish.getStorerkey());
        //接口名称
        log.setRequestInterfaceName("deliveryorder.confirm");
        
	}

}
